cd6b761ccb5482e126e0ccabc5bce2de5847f176,demo/src/main/java/HelloAny.java,HelloAny,run,#,23

Before Change


 */
public class HelloAny {
  public void run() {
    DatabaseProvider.fromSystemProperties().transact(new DbCode() {
      @Override
      public void run(Provider<Database> dbp) {
        Database db = dbp.get();
        db.dropTableQuietly("t");
        db.ddl("create table t (a numeric)").execute();
        db.toInsert("insert into t (a) values (?)")
            .argInteger(32)
            .insert(1);
        db.toUpdate("update t set a=:val")
            .argInteger("val", 23)
            .update(1);

        Long rows = db.toSelect("select count(1) from t ").queryLongOrNull();
        System.out.println("Rows: " + rows);
      }
    });
  }

  public static void main(final String[] args) {

After Change


 */
public class HelloAny {
  public void run() {
    DatabaseProvider.fromSystemProperties().transact(dbp -> {
      Database db = dbp.get();
      db.dropTableQuietly("t");
      db.ddl("create table t (a numeric)").execute();
      db.toInsert("insert into t (a) values (?)")
          .argInteger(32)
          .insert(1);
      db.toUpdate("update t set a=:val")
          .argInteger("val", 23)
          .update(1);

      Long rows = db.toSelect("select count(1) from t ").queryLongOrNull();
      System.out.println("Rows: " + rows);
    });
  }

  public static void main(final String[] args) {